package com.ruoyi.common.enums;



public enum EquipTypeEnum {
    DATA_0(0, "雷达","EquipRadarServiceImpl"),
    DATA_1(1, "导弹","EquipMissileServiceImpl"),
    DATA_2(2, "飞机","EquipAircraftServiceImpl"),
    DATA_3(3, "舰船","EquipShipServiceImpl"),
    DATA_4(4, "火炮","EquipCannonServiceImpl"),
    DATA_5(5, "装甲车","EquipArmoredVehicleServiceImpl");

    private Integer code;
    private String desc;
    private String serviceName;

    EquipTypeEnum(Integer code, String desc, String serviceName) {
        this.code = code;
        this.desc = desc;
        this.serviceName = serviceName;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public static EquipTypeEnum getEnum(Integer code) {
        for (EquipTypeEnum enums : EquipTypeEnum.values()) {
            if (enums.getCode().equals(code)) {
                return enums;
            }
        }
        return null;
    }

}
